<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: lzy
  Date: 2018/7/24
  Time: 14:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>test1</title>
</head>
<body>
<%
    pageContext.setAttribute("pageContextAttr","pageContext");
    request.setAttribute("requestAttr","request");
    session.setAttribute("sessionAttr","session");
    application.setAttribute("applicationAttr","application");
%>
<h2>Attr 1 page: <%= new Date()%></h2>
<br>
pageContextAttr:<%= pageContext.getAttribute("pageContextAttr")%>
<br><br>
requestAttr:<%= request.getAttribute("requestAttr")%>
<br><br>
sessionAttr:<%= session.getAttribute("sessionAttr")%>
<br><br>
applicationAttr:<%= application.getAttribute("applicationAttr")%>
<br><br>
<a href="test2.jsp"> To Att2 page</a>
<br><br>
<a href="testAttr"> To Att Servlet</a>
</body>
</html>
